/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/

.interactive-session {
	max-width: 850px;
	margin: auto;
}

#workbench\.panel\.aideAgentSidebar .pane-body {
	position: relative;
}

#workbench\.panel\.aideAgentSidebar .pane-body .pinned-context-widget {
	padding: 6px 10px 6px 10px;
	border-bottom: 1px solid var(--vscode-chat-requestBorder);
}

.interactive-list > .monaco-list > .monaco-scrollable-element > .monaco-list-rows > .monaco-list-row > .monaco-tl-row > .monaco-tl-twistie {
	/* Hide twisties from chat tree rows, but not from nested trees within a chat response */
	display: none !important;
}

.aideagent-item-container {
	padding-block: 12px;
	padding-inline: 10px;
	display: flex;
	flex-direction: column;
	color: var(--vscode-interactive-session-foreground);
	cursor: default;
	user-select: text;
	-webkit-user-select: text;
}

.aideagent-item-container .header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

.aideagent-item-container .header.hidden {
	display: none;
}

.aideagent-item-container .header .user {
	display: flex;
	align-items: center;
	gap: 8px;

	/*
	Rendering the avatar icon as round makes it a little larger than the .user container.
	Add padding so that the focus outline doesn't run into it, and counteract it with a negative margin so it doesn't actually take up any extra space */
	padding: 2px;
	margin: -2px;
}

.aideagent-item-container .header .username {
	margin: 0;
	font-size: 13px;
	line-height: 19.5px;
	font-weight: 500;
}

.aideagent-item-container .header .username.agent {
	color: var(--vscode-textLink-foreground);
}

.aideagent-item-container .detail-container {
	font-size: 12px;
	color: var(--vscode-descriptionForeground);
	overflow: hidden;
}

.aideagent-item-container .detail-container .detail .agentOrSlashCommandDetected A {
	cursor: pointer;
	color: var(--vscode-textLink-foreground);
}

.aideagent-item-container .chat-animated-ellipsis {
	display: inline-block;
	width: 11px;
}

.aideagent-item-container:not(.show-detail-progress) .chat-animated-ellipsis {
	display: none;
}

@keyframes ellipsis {
	0% {
		content: "";
	}
	25% {
		content: ".";
	}
	50% {
		content: "..";
	}
	75% {
		content: "...";
	}
	100% {
		content: "";
	}
}

.aideagent-item-container .chat-animated-ellipsis::after {
	content: '';
	white-space: nowrap;
	overflow: hidden;
	width: 3em;
	animation: ellipsis steps(4, end) 1s infinite;
}

.aideagent-item-container .header .avatar-container {
	display: flex;
	pointer-events: none;
	user-select: none;
}

.aideagent-item-container .header .avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	outline: 1px solid var(--vscode-chat-requestBorder);
}

.aideagent-item-container .header .avatar.codicon-avatar {
	background: var(--vscode-chat-avatarBackground);
}

.aideagent-item-container .header .avatar+.avatar {
	margin-left: -8px;
}

.aideagent-item-container .header .avatar .icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: var(--vscode-chat-list-background);
}

.aideagent-item-container .header .avatar .codicon {
	color: var(--vscode-chat-avatarForeground) !important;
	font-size: 14px;
}

/*
.monaco-list-row:not(.focused) .aideagent-item-container:not(:hover) .header .monaco-toolbar,
.monaco-list:not(:focus-within) .monaco-list-row .aideagent-item-container:not(:hover) .header .monaco-toolbar,
.monaco-list-row:not(.focused) .aideagent-item-container:not(:hover) .header .monaco-toolbar .action-label,
.monaco-list:not(:focus-within) .monaco-list-row .aideagent-item-container:not(:hover) .header .monaco-toolbar .action-label {
	/* Also apply this rule to the .action-label directly to work around a strange issue- when the
	toolbar is hidden without that second rule, tabbing from the list container into a list item doesn't work
	and the tab key doesn't do anything. *\/
	display: none;
}
*/

.aideagent-item-container .header .monaco-toolbar .monaco-action-bar .actions-container {
	gap: 4px;
}

.aideagent-item-container .header .monaco-toolbar .action-label {
	border: 1px solid transparent;
	padding: 2px;
}

.aideagent-item-container .header .monaco-toolbar {
	position: absolute;
	right: 0px;
	background-color: var(--vscode-chat-list-background);
}

.aideagent-item-container.interactive-request .header .monaco-toolbar {
	/* Take the partially-transparent background color override for request rows */
	background-color: inherit;
}

.aideagent-item-container .header .monaco-toolbar .checked.action-label,
.aideagent-item-container .header .monaco-toolbar .checked.action-label:hover {
	color: var(--vscode-inputOption-activeForeground) !important;
	border-color: var(--vscode-inputOption-activeBorder);
	background-color: var(--vscode-inputOption-activeBackground);
}

.aideagent-item-container .value {
	width: 100%;
	margin-top: 8px;
}

.aideagent-item-container > .value > :not(:first-child):not(.chat-used-context) {
	margin-top: 8px;
}

/* Should handle this one separately */
/* TODO(@ghostwriternr): Why? */
.aideagent-item-container > .value .chat-used-context {
	margin-top: 8px;
}

.aideagent-item-container .value .rendered-markdown blockquote {
	margin: 0px;
	padding: 0px 16px 0 10px;
	border-left-width: 5px;
	border-left-style: solid;
	border-radius: 2px;
	background: var(--vscode-textBlockQuote-background);
	border-color: var(--vscode-textBlockQuote-border);
}

.aideagent-item-container .value .rendered-markdown table {
	width: 100%;
	text-align: left;
	margin-bottom: 16px;
}

.aideagent-item-container .value .rendered-markdown table,
.aideagent-item-container .value .rendered-markdown table td,
.aideagent-item-container .value .rendered-markdown table th {
	border: 1px solid var(--vscode-chat-requestBorder);
	border-collapse: collapse;
	padding: 4px 6px;
}

.aideagent-item-container .value .rendered-markdown a,
.aideagent-item-container .value .interactive-session-followups,
.aideagent-item-container .value .rendered-markdown a code {
	color: var(--vscode-textLink-foreground);
}

.aideagent-item-container .value .rendered-markdown a {
	user-select: text;
}

.aideagent-item-container .value .rendered-markdown a:hover,
.aideagent-item-container .value .rendered-markdown a:active {
	color: var(--vscode-textLink-activeForeground);
}

.hc-black .aideagent-item-container .value .rendered-markdown a code,
.hc-light .aideagent-item-container .value .rendered-markdown a code {
	color: var(--vscode-textPreformat-foreground);
}

.interactive-list {
	overflow: hidden;
}

.aideagent-item-container .value {
	white-space: normal;
	overflow-wrap: anywhere;
}

.aideagent-item-container .value > :last-child.rendered-markdown > :last-child {
	margin-bottom: 0px;
}

.aideagent-item-container .value .rendered-markdown hr {
	border-color: rgba(0, 0, 0, 0.18);
}

.vs-dark .aideagent-item-container .value .rendered-markdown hr {
	border-color: rgba(255, 255, 255, 0.18);
}

.aideagent-item-container .value .rendered-markdown h1 {
	font-size: 20px;
	font-weight: 600;
	margin: 16px 0;

}

.aideagent-item-container .value .rendered-markdown h2 {
	font-size: 16px;
	font-weight: 600;
	margin: 16px 0;
}

.aideagent-item-container .value .rendered-markdown h3 {
	font-size: 14px;
	font-weight: 600;
	margin: 16px 0;
}

.aideagent-item-container.editing-session .value .rendered-markdown [data-code] {
	margin: 8px 0 16px 0;
}

.aideagent-item-container .value .rendered-markdown .codicon {
	position: relative;
	top: 2px;
}

.aideagent-item-container .value .rendered-markdown .aideagent-codeblock-pill-widget .codicon {
	top: 0px;
}

.aideagent-item-container .value .rendered-markdown p {
	line-height: 1.5em;
}

.aideagent-item-container .value > .rendered-markdown p {
	margin: 0 0 16px 0;
}

.aideagent-item-container .value > .rendered-markdown li > p {
	margin: 0;
}

/* #region list indent rules */
.aideagent-item-container .value .rendered-markdown ul {
	/* Keep this in sync with the values for dedented codeblocks below */
	padding-inline-start: 24px;
}

.aideagent-item-container .value .rendered-markdown ol {
	/* Keep this in sync with the values for dedented codeblocks below */
	padding-inline-start: 28px;
}

/* NOTE- We want to dedent codeblocks in lists specifically to give them the full width. No more elegant way to do this, these values
have to be updated for changes to the rules above, or to support more deeply nested lists. */
.aideagent-item-container .value .rendered-markdown ul .interactive-result-code-block {
	margin-left: -24px;
}

.aideagent-item-container .value .rendered-markdown ul ul .interactive-result-code-block {
	margin-left: -48px;
}

.aideagent-item-container .value .rendered-markdown ol .interactive-result-code-block {
	margin-left: -28px;
}

.aideagent-item-container .value .rendered-markdown ol ol .interactive-result-code-block {
	margin-left: -56px;
}

.aideagent-item-container .value .rendered-markdown ol ul .interactive-result-code-block,
.aideagent-item-container .value .rendered-markdown ul ol .interactive-result-code-block {
	margin-left: -52px;
}

/* #endregion list indent rules */

.aideagent-item-container .value .rendered-markdown li {
	line-height: 1.3rem;
}

.aideagent-item-container .value .rendered-markdown img {
	max-width: 100%;
}

.aideagent-item-container .monaco-tokenized-source,
.aideagent-item-container code {
	font-family: var(--monaco-monospace-font);
	font-size: 12px;
	color: var(--vscode-textPreformat-foreground);
	background-color: var(--vscode-textPreformat-background);
	padding: 1px 3px;
	border-radius: 4px;
}

.aideagent-item-container > .value > .aideagent-codeedit-list {
	padding: 0 4px;
}

.aideagent-item-container > .value > .chat-used-context .chat-used-context-list .monaco-list-row .monaco-icon-label-container,
.aideagent-item-container > .value > .aideagent-codeedit-list .monaco-list-row .monaco-icon-label-container {
	display: flex;
	padding-right: 2px;
}

.aideagent-item-container > .value > .chat-used-context .chat-used-context-list .monaco-list-row .monaco-icon-label-container > .monaco-icon-description-container,
.aideagent-item-container > .value > .aideagent-codeedit-list .monaco-list-row .monaco-icon-label-container > .monaco-icon-description-container {
	flex-grow: 1;
	display: flex;
	justify-content: end;
}

.aideagent-item-container.interactive-item-compact {
	padding: 8px 20px;
}

.aideagent-item-container.interactive-item-compact.no-padding {
	padding: unset;
	gap: unset;
}

.aideagent-item-container.interactive-item-compact .header {
	height: 16px;
}

.aideagent-item-container.interactive-item-compact .header .avatar {
	width: 18px;
	height: 18px;
}

.aideagent-item-container.interactive-item-compact .header .avatar .icon {
	width: 16px;
	height: 16px;
}

.aideagent-item-container.interactive-item-compact .header .codicon-avatar .codicon {
	font-size: 12px;
}

.aideagent-item-container.interactive-item-compact .header .avatar+.avatar {
	margin-left: -4px;
}

.aideagent-item-container.interactive-item-compact .value {
	min-height: 0;
}

.aideagent-item-container.interactive-item-compact .value > .rendered-markdown p {
	margin: 0 0 8px 0;
}

.aideagent-item-container.interactive-item-compact .value > .rendered-markdown li > p {
	margin: 0;
}

.aideagent-item-container.interactive-item-compact .value .rendered-markdown h1 {
	margin: 8px 0;

}

.aideagent-item-container.interactive-item-compact .value .rendered-markdown h2 {
	margin: 8px 0;
}

.aideagent-item-container.interactive-item-compact .value .rendered-markdown h3 {
	margin: 8px 0;
}

.aideagent-item-container.minimal {
	flex-direction: row;
}

.aideagent-item-container.minimal .column.left {
	padding-top: 2px;
	display: inline-block;
	flex-grow: 0;
}

.aideagent-item-container.minimal .column.right {
	display: inline-block;
	flex-grow: 1;
}

.aideagent-item-container.minimal .user > .username {
	display: none;
}

.aideagent-item-container.minimal .detail-container {
	font-size: unset;
}

.aideagent-item-container.minimal > .header {
	position: absolute;
	right: 0;
}

.interactive-session .chat-dnd-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;

	display: none;
}

.interactive-session .chat-dnd-overlay.visible {
	display: flex;
	align-items: center;
	justify-content: center;
}

.interactive-session .chat-dnd-overlay .attach-context-overlay-text {
	padding: 0.6em;
	margin: 0.2em;
	line-height: 12px;
	height: 12px;
	display: flex;
	align-items: center;
	text-align: center;
}

.interactive-session .chat-dnd-overlay .attach-context-overlay-text .codicon {
	height: 12px;
	font-size: 12px;
	margin-right: 3px;
}

.interactive-session .chat-input-container {
	width: 100%;
	box-sizing: border-box;
	cursor: text;
	background-color: var(--vscode-input-background);
	border: 1px solid var(--vscode-input-border, transparent);
	border-radius: 4px;
	padding: 0 6px 6px 6px; /* top padding is inside the editor widget */
}

.interactive-session .interactive-input-part.compact .chat-input-container {
	display: flex;
	justify-content: space-between;
	padding-bottom: 0;
	border-radius: 2px;
}

.interactive-session .interactive-input-and-side-toolbar {
	display: flex;
	gap: 4px;
	align-items: center;
	width: 100%;
}

.interactive-session .chat-input-container.focused {
	border-color: var(--vscode-focusBorder);
}

.chat-editor-container .monaco-editor .mtk1 {
	color: var(--vscode-input-foreground);
}

.interactive-session .chat-editor-container .monaco-editor,
.interactive-session .chat-editor-container .monaco-editor .monaco-editor-background {
	background-color: var(--vscode-input-background) !important;
}

.interactive-session .chat-editor-container .monaco-editor .cursors-layer {
	padding-left: 4px;
}

.interactive-session .aideagent-input-toolbars {
	display: flex;
}

.interactive-session .aideagent-input-toolbars :first-child {
	margin-right: auto;
}

.interactive-session .aideagent-input-toolbars .agentmode-picker-item .action-label,
.interactive-session .aideagent-input-toolbars .agentscope-picker-item .action-label {
	font-size: 12px;
	height: 16px;
	padding: 3px 0px 3px 6px;
	display: flex;
	align-items: center;
}

.interactive-session .aideagent-input-toolbars .agentmode-picker-item .action-label .codicon-chevron-down,
.interactive-session .aideagent-input-toolbars .agentscope-picker-item .action-label .codicon-chevron-down {
	font-size: 12px;
	margin-left: 2px;
}

.interactive-session .aideagent-input-toolbars .monaco-action-bar .actions-container {
	display: flex;
	gap: 4px;
}

.interactive-session .aideagent-input-toolbars .codicon-debug-stop {
	color: var(--vscode-icon-foreground) !important;
}

.interactive-session .aideagent-input-toolbars .action-item:has(.codicon-compass-active) {
	background-color: var(--vscode-toolbar-activeBackground);
	border-radius: 4px;
}

.interactive-response .interactive-result-code-block .interactive-result-editor .monaco-editor,
.interactive-response .interactive-result-code-block .interactive-result-editor .monaco-editor .margin,
.interactive-response .interactive-result-code-block .interactive-result-editor .monaco-editor .monaco-editor-background {
	background-color: var(--vscode-interactive-result-editor-background-color) !important;
}

.interactive-item-compact .interactive-result-code-block {
	margin: 0 0 8px 0;
}

.aideagent-item-container .interactive-result-code-block .monaco-toolbar .monaco-action-bar .actions-container {
	padding-inline-start: unset;
}

.chat-notification-widget .chat-info-codicon,
.chat-notification-widget .chat-error-codicon,
.chat-notification-widget .chat-warning-codicon {
	display: flex;
	align-items: start;
	gap: 8px;
}

.aideagent-item-container .value .chat-notification-widget .rendered-markdown p {
	margin: 0;
}

.interactive-response .interactive-response-error-details {
	display: flex;
	align-items: start;
	gap: 6px;
}

.interactive-response .interactive-response-error-details .rendered-markdown :last-child {
	margin-bottom: 0px;
}

.chat-notification-widget .chat-info-codicon .codicon,
.chat-notification-widget .chat-error-codicon .codicon,
.chat-notification-widget .chat-warning-codicon .codicon {
	margin-top: 2px;
}

.interactive-response .interactive-response-error-details .codicon {
	margin-top: 1px;
}

.chat-used-context-list .codicon-warning {
	color: var(--vscode-notificationsWarningIcon-foreground); /* Have to override default styles which apply to all lists */
}

.chat-used-context-list .monaco-icon-label-container {
	color: var(--vscode-interactive-session-foreground);
}

.aideagent-attached-context .aideagent-attached-context-attachment .monaco-icon-name-container.warning,
.aideagent-attached-context .aideagent-attached-context-attachment .monaco-icon-suffix-container.warning,
.chat-used-context-list .monaco-icon-name-container.warning,
.chat-used-context-list .monaco-icon-suffix-container.warning {
	color: var(--vscode-notificationsWarningIcon-foreground);
}

.aideagent-attached-context .aideagent-attached-context-attachment.show-file-icons.warning {
	border-color: var(--vscode-notificationsWarningIcon-foreground);
}

.chat-notification-widget .chat-warning-codicon .codicon-warning {
	color: var(--vscode-notificationsWarningIcon-foreground) !important; /* Have to override default styles which apply to all lists */
}

.chat-notification-widget .chat-error-codicon .codicon-error,
.interactive-response .interactive-response-error-details .codicon-error {
	color: var(--vscode-errorForeground) !important; /* Have to override default styles which apply to all lists */
}

.chat-notification-widget .chat-info-codicon .codicon-info,
.interactive-response .interactive-response-error-details .codicon-info {
	color: var(--vscode-notificationsInfoIcon-foreground) !important; /* Have to override default styles which apply to all lists */
}

.interactive-session .interactive-input-part {
	margin: 0px 16px;
	padding: 12px 0px;
	display: flex;
	flex-direction: column;
	position: relative;
}

.interactive-session .interactive-input-part.compact {
	margin: 0;
	padding: 8px 0 0 0
}

.interactive-session .aideagent-attached-context {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.interactive-session .aideagent-attached-context .aideagent-attachments-list .monaco-list {
	border: none;
	border-radius: 4px;
	width: auto;
}

.interactive-session .aideagent-attached-context.aideagent-attachments-list-collapsed .aideagent-attachments-list {
	display: none;
}

.interactive-session .aideagent-attached-context .aideagent-attachments-list .monaco-list .monaco-list-row {
	border-radius: 2px;
}

.interactive-session .aideagent-attached-context .aideagent-attached-context-attachment {
	display: flex;
	gap: 4px;
}

.interactive-session .aideagent-attached-context .aideagent-attached-context-attachment .monaco-button:hover {
	cursor: pointer;
}

.interactive-session .aideagent-attached-context .aideagent-attached-context-attachment .monaco-button {
	display: flex;
	align-items: center;
}

.interactive-session .aideagent-attached-context .aideagent-attached-context-attachment .monaco-icon-label-container {
	display: flex;
}

.interactive-session .aideagent-attached-context .aideagent-attached-context-attachment .monaco-icon-label-container .monaco-highlighted-label {
	display: flex !important;
	align-items: center !important;
}

.interactive-session .aideagent-attached-context .aideagent-attached-context-attachment .monaco-icon-label .monaco-button.codicon.codicon-close,
.interactive-session .aideagent-attached-context .aideagent-attached-context-attachment .monaco-button.codicon.codicon-close {
	color: var(--vscode-descriptionForeground);
	cursor: pointer;
}

.interactive-session .aideagent-attached-context .aideagent-attached-context-attachment .monaco-icon-label .codicon {
	padding-left: 4px;
}

.interactive-session .aideagent-attached-context {
	padding: 0;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.interactive-session .interactive-input-part.compact .aideagent-attached-context {
	padding-top: 8px;
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
}

.interactive-session .aideagent-attached-context .aideagent-attached-context-attachment {
	padding: 2px;
	border: 1px solid var(--vscode-chat-requestBorder, var(--vscode-input-background, transparent));
	border-radius: 4px;
	height: 18px;
	max-width: 100%;
}

.interactive-session .aideagent-item-container.interactive-request .aideagent-attached-context .aideagent-attached-context-attachment {
	padding-right: 6px;
}

.interactive-session-followups {
	display: flex;
	flex-direction: column;
	gap: 6px;
	align-items: start;
}

.interactive-session-followups .monaco-button {
	text-align: left;
	width: initial;
}

.interactive-session-followups .monaco-button .codicon {
	margin-left: 0;
	margin-top: 1px;
}

.aideagent-item-container .interactive-response-followups .monaco-button {
	padding: 4px 8px;
}

.interactive-session .interactive-input-part .interactive-input-followups .interactive-session-followups {
	margin: 8px 0;
}

.interactive-session .interactive-input-part .interactive-input-followups .interactive-session-followups .monaco-button {
	display: block;
	color: var(--vscode-textLink-foreground);
	font-size: 12px;

	/* clamp to max 3 lines */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.interactive-session .interactive-input-part .interactive-input-followups .interactive-session-followups code {
	font-family: var(--monaco-monospace-font);
	font-size: 11px;
}

.interactive-session .interactive-input-part .interactive-input-followups .interactive-session-followups .monaco-button .codicon-sparkle {
	float: left;
}

.interactive-session-followups .monaco-button.interactive-followup-reply {
	padding: 0px;
	border: none;
}

.interactive-welcome .value .interactive-session-followups {
	margin-bottom: 16px;
}

.aideagent-item-container .monaco-toolbar .codicon {
	/* Very aggressive list styles try to apply focus colors to every codicon in a list row. */
	color: var(--vscode-icon-foreground) !important;
}

/* #region Quick Chat */

.quick-input-widget .interactive-session .interactive-input-part {
	padding: 8px 6px 6px 6px;
	margin: 0 3px;
}

.quick-input-widget .interactive-session .interactive-input-part .aideagent-input-toolbars {
	margin-bottom: 1px;
}

.quick-input-widget .interactive-session .chat-input-container {
	margin: 0;
	border-radius: 2px;
	padding: 0 4px 0 6px;
	width: 100%;
}

.quick-input-widget .interactive-list {
	border-bottom-right-radius: 6px;
	border-bottom-left-radius: 6px;
}

.quick-input-widget .interactive-response {
	min-height: 86px;
}

/* #endregion */

.interactive-response-progress-tree .monaco-list-row:not(.selected) .monaco-tl-row:hover {
	background-color: var(--vscode-list-hoverBackground);
}

.interactive-response-progress-tree {
	margin: 16px 0px;
}

.interactive-response-progress-tree.focused {
	border-color: var(--vscode-focusBorder, transparent);
}

.aideagent-item-container .value .interactive-response-placeholder-codicon .codicon {
	color: var(--vscode-editorGhostText-foreground);
}

.aideagent-item-container .value .interactive-response-placeholder-content {
	color: var(--vscode-editorGhostText-foreground);
	font-size: 12px;
	margin-bottom: 16px;
}

.aideagent-item-container .value .interactive-response-placeholder-content p {
	margin: 0;
}

.interactive-response  .interactive-response-codicon-details {
	display: flex;
	align-items: start;
	gap: 6px;
}

.chat-used-context-list .monaco-list {
	border: none;
	border-radius: 4px;
	width: auto;
}

.aideagent-item-container .chat-resource-widget {
	background-color: var(--vscode-chat-slashCommandBackground);
	color: var(--vscode-chat-slashCommandForeground);
}

.aideagent-item-container .chat-resource-widget,
.aideagent-item-container .chat-agent-widget .monaco-button {
	border-radius: 4px;
	padding: 1px 3px;
}

.aideagent-item-container .chat-agent-widget .monaco-text-button {
	display: inline;
	border: none;
}

.interactive-session .chat-used-context.chat-used-context-collapsed .chat-used-context-list {
	display: none;
}

.interactive-session .chat-used-context {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.interactive-response-progress-tree,
.aideagent-item-container .chat-notification-widget,
.interactive-session .chat-used-context-list,
.interactive-session .aideagent-attached-context .aideagent-attachments-list {
	border: 1px solid var(--vscode-chat-requestBorder);
	border-radius: 4px;
	margin-bottom: 8px;
	padding: 4px 6px;
}

.aideagent-item-container .chat-notification-widget {
	padding: 8px 12px;
}

.interactive-session .chat-used-context-list .monaco-list .monaco-list-row {
	border-radius: 2px;
}

.interactive-session .aideagent-used-context-label,
.interactive-session .aideagent-attachments-label {
	font-size: 12px;
	color: var(--vscode-descriptionForeground);
	opacity: 0.8;
	user-select: none;
}

.interactive-session .aideagent-used-context-label:hover,
.interactive-session .aideagent-attachments-label:hover {
	opacity: unset;
}

.interactive-session .aideagent-used-context-label .monaco-button,
.interactive-session .aideagent-attachments-label .monaco-button {
	/* unset Button styles */
	display: flex;
	align-items: center;
	/* gap: 4px; */
	height: 18px;
	cursor: pointer;
	width: fit-content;
	border: 1px solid var(--vscode-chat-requestBorder, var(--vscode-input-background));
	border-radius: 4px;
	padding: 3px;
	text-align: initial;
	justify-content: initial;
}

.interactive-session .aideagent-used-context-label .monaco-button:hover,
.interactive-session .aideagent-attachments-label .monaco-button:hover {
	background-color: var(--vscode-list-hoverBackground);
	color: var(--vscode-foreground);
}

.interactive-session .aideagent-used-context-label .monaco-text-button:focus,
.interactive-session .aideagent-attachments-label .monaco-text-button:focus {
	outline: none;
}

.interactive-session .aideagent-used-context-label .monaco-text-button:focus-visible,
.interactive-session .aideagent-attachments-label .monaco-text-button:focus-visible {
	outline: 1px solid var(--vscode-focusBorder);
}

.interactive-session .chat-used-context .aideagent-used-context-label .monaco-button .codicon,
.interactive-session .aideagent-attached-context .aideagent-attachments-label .monaco-button .codicon {
	margin: 0 0 0 4px;
}

.aideagent-item-container .rendered-markdown.progress-step {
	display: flex;
	margin-left: 4px;
	white-space: normal;
}

.aideagent-item-container .rendered-markdown.progress-step > p {
	color: var(--vscode-descriptionForeground);
	font-size: 12px;
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 6px;
}

.aideagent-item-container .rendered-markdown.progress-step > p .codicon {
	/* Very aggressive list styles try to apply focus colors to every codicon in a list row. */
	color: var(--vscode-icon-foreground) !important;
}

.aideagent-item-container .rendered-markdown.progress-step > p .codicon.codicon-check {
	color: var(--vscode-debugIcon-startForeground) !important;
}

.aideagent-item-container .chat-command-button {
	display: flex;
	margin-bottom: 0px;
}

.aideagent-item-container .chat-command-group {
	display: flex;
	justify-content: end;
	gap: 10px;
}
.aideagent-item-container .chat-command-group .monaco-button.aide-button {
	width: fit-content;
}

.aideagent-item-container .chat-notification-widget {
	display: flex;
	flex-direction: row;
	gap: 6px;
}

.aideagent-item-container .chat-command-button .monaco-button,
.chat-confirmation-widget .chat-confirmation-buttons-container .monaco-button {
	text-align: left;
	width: initial;
	padding: 4px 8px;
}

.aideagent-item-container .chat-command-button .monaco-button .codicon {
	margin-left: 0;
	margin-top: 1px;
}

.chat-code-citation-label {
	opacity: 0.7;
	white-space: pre-wrap;
}

.chat-code-citation-button-container {
	display: inline;
}

.chat-code-citation-button-container .monaco-button {
	display: inline;
	border: none;
	padding: 0;
	color: var(--vscode-textLink-foreground);
}

.aideagent-item-container.interactive-request {
	border-block: none;
}

.aideagent-item-container .aideagent-attachment-icons .icon {
	height: 18px;
	display: inline-block;
	vertical-align: middle;
}

.aideagent-item-container .aideagent-attachment-icons .icon::before {
	color: var(--vscode-descriptionForeground) !important;
	display: inline-block;
	background-size: 100%;
	background-position: left center;
	background-repeat: no-repeat;
}

.aideagent-item-container .aideagent-attachment-icons .file-icon::before {
	font-size: 175% !important;
}

.aideagent-item-container .aideagent-attachment-icons .icon-label {
	text-wrap: wrap;
}
